//
//  ViewController.h
//  UISearchViewController
//
//  Created by LINAICAI on 2017/1/12.
//  Copyright © 2017年 LINAICAI. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "LBCityModel.h"

@class LBCityModel;
@protocol LBCityPickerViewControllerDelegate <NSObject>
@required
- (void)LBCityPickerViewControllerDidSelectCity:(LBCityModel *)city;
- (void)LBCityPickerViewControllerDismiss;
@end
@interface LBCityPickerViewController : UIViewController
@property(nonatomic , strong)UITableView *tableView;
@property(nonatomic , strong)UISearchController *searchController;
@property(nonatomic , copy)void(^complete)(LBCityModel *city) ;
//工厂方法
+ (void)showWithTitle:(NSString *)title fromVc:(UIViewController *)fromVc toVc:(UIViewController *)toVc complete:(void(^)(LBCityModel *city))complete;
//在子类中重写该方法用来做一些配置，但记得先调用[super prepare]
- (void)prepare;
//控制器本身单例
+ (instancetype)defaultViewController;

@end

